Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less allocs in ForwardDiff #228

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Less allocs in ForwardDiff #228

merged 1 commit into from
Apr 28, 2024

Conversation

gdalle
Copy link
Member

@gdalle gdalle commented Apr 28, 2024

Extensions

  • Replace xdual .= Dual{T}(x, dx) with an explicit iteration to shave one allocation
  • There is still one allocation in value_and_pushforward!(f!, ...), it's fixed size so probably type instability but JET doesn't catch it

@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 96.13%. Comparing base (1e30916) to head (1602931).

Files Patch % Lines
...xt/DifferentiationInterfaceForwardDiffExt/utils.jl 66.66% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
- Coverage   96.27%   96.13%   -0.14%     
==========================================
  Files          74       74              
  Lines        3891     3911      +20     
==========================================
+ Hits         3746     3760      +14     
- Misses        145      151       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdalle gdalle merged commit cc73842 into main Apr 28, 2024
5 checks passed
@gdalle gdalle deleted the gd/fd_less_allocs branch April 29, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants